package com.liuyi.tools.io.poi;

import java.util.List;

/**
 * <p>
 * POI导出公用方法实体
 * <p>
 *
 * @ClassName POIExport
 * @Aulthor Mr.fmy
 * @Version 1.0
 * @Date 2019/8/27 17:54
 **/
public class POIExport{

    private String title;
    private List<String> cloumns;
    private List<List<String>> data;

    public POIExport(String title, List<String> cloumns, List<List<String>> data) {
        this.title = title;
        this.cloumns = cloumns;
        this.data = data;
    }

    public POIExport() {
    }

    public String getTitle() {
        return title;
    }

    public List<String> getCloumns() {
        return cloumns;
    }

    public List<List<String>> getData() {
        return data;
    }

    public Integer getCloumnNum() {
        if (this.cloumns == null) return 0;
        return this.cloumns.size();
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public void setCloumns(List<String> cloumns) {
        this.cloumns = cloumns;
    }

    public void setData(List<List<String>> data) {
        this.data = data;
    }
}
